<template>
    <view class="content">
        <u-cell-group>
            <u-cell title="真实姓名" :value="certifiedInfo.name"></u-cell>
            <u-cell title="证件类型" :value="certifiedInfo.card_type"></u-cell>
            <u-cell title="证件号码" :value="certifiedInfo.card_id"></u-cell>
            <u-cell title="认证状态" :value="certifiedInfo.is_certified"></u-cell>
        </u-cell-group>
    </view>
</template>

<script setup lang="ts">
import {reactive} from 'vue'
import { onShow } from "@dcloudio/uni-app";
import { getUserCertifiedInfo } from '@/api/mine/mine'
const certifiedInfo = reactive({
    name:'',
    card_type:'',
    card_id:'',
    is_certified:''
})


onShow(()=>{
    getUserCertifiedInfo().then((res:any)=>{
        Object.assign(certifiedInfo,res.data)
    })
})

</script>


<style lang="scss" scoped>
.content {
    border-top: 2rpx solid #E4E4E4;
}
</style>